<!--
 * @Description: 
 * @Version: 1.0
 * @Autor: younghxp
 * @Date: 2022-03-17 11:41:43
 * @LastEditors: younghxp
 * @LastEditTime: 2022-03-23 18:27:56
-->
<template>
  <div class="container">
    <topTitle
      titleText="历史记录"
      :back="true"
      @gobackTriser="goBack"
    ></topTitle>
    <salary-attach-record
      :showHistory="false"
      :projectId="projectId"
    ></salary-attach-record>
  </div>
</template>

<script>
import salaryAttachRecord from './salaryAttachRecord'
export default {
  name: 'salaryAttachRecordPage',
  components: {
    salaryAttachRecord,
  },
  data() {
    return {
      projectId,
    }
  },
  created() {
    this.projectId = this.$route.query.projectId
  },
  methods: {
    goBack() {
      const { oldUrl, projectId, backPath } = this.$route.query
      this.$router.push({
        path: backPath,
        query: {
          projectId,
        },
      })
      this.$store.commit('GOBACK_NAME', {
        oldUrl,
        newUrl: this.$router.currentRoute.fullPath,
      })
    },
  },
}
</script>

<style lang="less" scoped></style>
